﻿// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-12-26 11:54:00
// 负责人：lvsc
// ===================================================================
using System;
using System.Data;
using System.Collections.Generic;
using OF.Utility;
using OF.Component.Model;
using OF.Component.IDAL;
using OF.Component.Factory;
namespace OF.Component.BLL
{
	
	/// <summary>
	///用户来源
	/// </summary>
	public partial class UserSourceOperate
	{
        private static readonly IUserSource dal=  UserSource.CreateInstance();
        
         ///<summary>
        /// 获取最大主键ID，针对非自增列主键 
        /// 暂时无用
        ///</summary>
        public static int GetMaxID()
        {
           return dal.GetMaxID();
        }
        
        ///<summary>
        /// 插入接口
        ///</summary>
		public static int Insert(UserSourceInfo info)
		{
			int reValue=dal.Insert(info);
            return reValue;
		}
        
        ///<summary>
        /// 修改接口
        ///</summary>
		public static void Update(UserSourceInfo info)
		{
			dal.Update(info);
		}
        
        ///<summary>
        /// 删除接口
        ///</summary>
        public static void Delete(int userSourceID)
		{           
            dal.Delete(userSourceID);		
		}
      
         ///<summary>
         /// 搜索接口
         ///</summary>
		public static IList<UserSourceInfo> Search(out int pageCount, int pageIndex, int pageSize, string where, string orderField, bool isDesc)
		{
            return dal.Search(out pageCount, pageIndex, pageSize, where, orderField, isDesc);
		}
        
        ///<summary>
        ///根据主键取出信息
        ///</summary>
        public static UserSourceInfo GetByID(int userSourceID)
		{
            return dal.GetByID(userSourceID);
           
		}
	}
	
}